package com.twu.biblioteca;


import java.io.PrintStream;
import java.util.List;

public class ListBookCommand {
    private List<LibraryBook> bookList;
    private java.io.PrintStream printStream;

    public ListBookCommand(PrintStream printStream, List<LibraryBook> bookList) {
        this.bookList = bookList;
        this.printStream = printStream;
    }

    public void listBooks() {
        for (LibraryBook book : bookList) {
            printStream.println(book.toString());
        }
    }
}
